#app {

  .main-container {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
  }

  .sidebarHide {
    margin-left: 0!important;
  }

  .sidebar-container {
    -webkit-transition: width .28s;
    transition: width 0.28s;
    width: $base-sidebar-width !important;
    background-color: $base-menu-background;
    height: 100%;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
    box-shadow: 2px 0 6px rgba(0,21,41,.35);

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
      background-color: rgb(48, 65, 86);
    }

    .el-menu-item, .menu-title {
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }

    .el-menu-item .el-menu-tooltip__trigger {
      display: inline-block !important;
      i{
        color: #ffffff;
      }
    }

    // menu hover
    .sub-menu-title-noDropdown,
    .el-sub-menu__title {
      &:hover {
        background-color: rgba(0, 0, 0, 0.06) !important;
      }
    }

    & .theme-dark .is-active > .el-sub-menu__title {
      color: $base-menu-color-active !important;
    }

    & .nest-menu .el-sub-menu>.el-sub-menu__title,
    & .el-sub-menu .el-menu-item {
      min-width: $base-sidebar-width !important;

      &:hover {
        background-color: rgba(0, 0, 0, 0.06) !important;
      }
    }

    & .theme-dark .nest-menu .el-sub-menu>.el-sub-menu__title,
    & .theme-dark .el-sub-menu .el-menu-item {
      background-color: $base-sub-menu-background !important;

      &:hover {
        background-color: $base-sub-menu-hover !important;
      }
    }
  }

  .hideSidebar {
    .sub-menu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-sub-menu {
      overflow: hidden;

      &>.el-sub-menu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

      }
    }

    .el-menu--collapse {
      .el-sub-menu {
        &>.el-sub-menu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
          &>i {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-sub-menu {
    min-width: $base-sidebar-width !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform .28s;
      width: $base-sidebar-width !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$base-sidebar-width, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-sub-menu>.el-sub-menu__title,
  .el-menu-item {
    &:hover {
      // you can use $sub-menuHover
      background-color: rgba(0, 0, 0, 0.06) !important;
    }
  }

  // the scroll bar appears when the sub-menu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}

.sidebar-item_box{
  .el-menu-item{
    height: 60px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    padding-left: 6px;
    .el-menu-tooltip__trigger{
      padding: 0;
      margin: 0;
      box-sizing: border-box;
      padding-left: 6px;
    }
    .sidebar-item_kli{
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 5px 2px;
      border-radius: 4px;
      .sidebar-item_kicon{
        margin: 0;
        width: 20px;
        height: 20px;
        img{
          width: 100%;
          height: 100%;
          display: block;
        }
      }
      .sidebar-item_title{
        width: 100%;
        line-height: 1;
        margin-top: 5px;
        overflow: hidden;
        font-size: 12px;
        text-align: center;
        border: 1px solid rgba(0, 0, 0, 0);
        color: #ffffff;
      }
    }
  }
  .is-active{
    .sidebar-item_kli{
      background-color: var(--el-color-primary);
    }
  }
}


.Sidebar-box{
  height: 100%;
  display: flex;
  flex-direction: row;
  .Sidebar-box_navs{
    width: 60px;
    height: 100%;
    background-color: $base-menu-background;
    display: flex;
    flex-direction: column;
  }
  .Sidebar-box_ul{
    flex: 1;
    min-height: 0;
    width: 100%;
    -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
    box-shadow: 2px 0 6px rgba(0,21,41,.35);
    margin: 0;
    padding: 0;
    padding-left: 5px;
    overflow: auto;
    .Sidebar-box_li{
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 8px 4px;
      border-radius: 4px;
      box-sizing: border-box;
      cursor: pointer;
      margin-top: 10px;
      .Sidebar-box_icon{
        width: 22px;
        height: 22px;
      }
      .Sidebar-box_title{
        font-size: 12px;
        color: #ffffff;
        margin-top: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      &:hover{
        background-color: var(--el-color-primary);
      }
    }
    .Sidebar-box_isActive{
      background-color: var(--el-color-primary);
    }
  }
  .Sidebar-box_childs{
    width: 0;
    height: 100%;
    padding: 10px 0;
    -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.1);
    box-shadow: 2px 0 6px rgba(0,21,41,.1);
    overflow: auto;
    transition: width 0.2s;
    .Sidebar-box_cli{
      width: 160px;
      white-space: nowrap;
      .Sidebar-box_cmk{
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 15px;
        height: 35px;
        cursor: pointer;
        .Sidebar-box_ctxt{
          flex: 1;
          min-width: 0;
          font-size: 13px;
          color: #666;
        }

        .Sidebar-box_isActive3{
          color: var(--el-color-primary);
        }

        .Sidebar-box_cicon{
          font-size: 14px;
          color: #666;
          transform: rotate(0);
          transition: transform 0.3s;
        }
        .Sidebar-box_cact{
          transform: rotate(90deg);
        }
        &:hover{
          .Sidebar-box_ctxt,.Sidebar-box_cicon{
            color: var(--el-color-primary);
          }
        }
      }
      .Sidebar-box_isActive2{
        .Sidebar-box_ctxt,.Sidebar-box_cicon{
          color: var(--el-color-primary);
        }
      }
    }
    .Sidebar-box_ubox{
      padding-left: 15px;
      max-height: 0;
      transition: max-height 0.3s;
      overflow: hidden;
    }
    .Sidebar-box_uactive{
      max-height: 400px;
    }
  }
  .Sidebar-box_cshow{
    width: 160px;
  }
}


.leftLayout-ul_footer{
  position: relative;
  &::after{
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    border-top: 1px solid #e5e5e5;
  }
  .leftLayout-ul_fli{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    .leftLayout-ul_ft1{
      font-size: 18px;
      color: #ffffff;
    }
    .leftLayout-ul_ft2{
      font-size: 12px;
      color: #ffffff;
      margin-top: 5px;
    }
    &:hover{
      .leftLayout-ul_ft1,.leftLayout-ul_ft2{
        color: var(--el-color-primary);
      }
    }
  }
  .leftLayout-ul_line{
    position: relative;
    &::after{
      content: '';
      position: absolute;
      top: 0;
      left: 7px;
      right: 12px;
      border-top: 1px solid var(--pages-leftborder-color);
    }
  }
}

.leftLayout-popover_serach{
  padding: 15px;
  box-sizing: border-box;
  .popover_serach-phed{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    .popover_serach-pkt1{
      font-size: var(--pages-size-font14);
      color: var(--pages-size-color2);
    }
    .popover_serach-pkt2{
      font-size: var(--pages-size-font16);
      color: var(--pages-size-color2);
      cursor: pointer;
      &:hover{
        color: var(--pages-theme-color);
      }
    }
  }
  .popover_serach-nodata{
    height: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: var(--pages-size-font12);
    color: var(--pages-size-color);
  }
}

.leftLayout-popover_mobile{
  padding: 10px;
  .popover_mobile-ul{
    .popover_mobile-li{
      display: flex;
      flex-direction: row;
      align-items: center;
      padding: 10px 0;
      border-radius: 4px;
      cursor: pointer;
      .popover_mobile-mht1{
        font-size: var(--pages-size-font18);
        color: var(--pages-theme-color);
      }
      .popover_mobile-mht2{
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin: 0 5px;
        font-size: var(--pages-size-font13);
        color: var(--pages-size-color2);
      }
      .popover_mobile-mht3{
        font-size: var(--pages-size-font15);
        color: var(--pages-size-color2);
      }
      .popover_mobile-mht4{
        font-size: var(--pages-size-font12);
        color: var(--pages-size-color);
      }
      &:hover{
        .popover_mobile-mht2,.popover_mobile-mht3,.popover_mobile-mht4{
          color: var(--pages-theme-color);
        }
      }
    }
  }
  .popover_mobile-ul+.popover_mobile-ul{
    border-top: 1px solid var(--pages-border-color);
  }
}


.leftLayout-popover_infor{
  padding: 30px 30px 20px 30px;
  .popover_infor-vrp1{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    .popover_infor-vgt1{
      width: 40px;
      height: 40px;
      border-radius: 40px;
    }
    .popover_infor-vgt2{
      margin-left: 10px;
      font-size: var(--pages-size-font13);
      color: var(--pages-size-color2);
    }
  }
  .popover_infor-vli{
    display: flex;
    flex-direction: row;
    padding: 6px 0;
    .popover_infor-vlable{
      font-size: var(--pages-size-font12);
      color: var(--pages-size-color);
      width: 70px;
    }
    .popover_infor-intro{
      font-size: var(--pages-size-font12);
      color: var(--pages-size-color2);
    }
  }
  .popover_infor-vbuts{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 15px;
    .popover_infor-vbli{
      flex: 1;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      font-size: var(--pages-size-font12);
      color: var(--pages-size-color2);
      cursor: pointer;
      .popover_infor-vicon{
        font-size: var(--pages-size-font14);
        margin-right: 5px;
      }
      &:hover{
        color: var(--pages-theme-color);
      }
    }
  }
}